package com.example.myapplication.kotlin

fun main() {
    var user = User("张三", 1, 18)
    user.show()
}

class User<S,I>(   var name: S,    var id: I,    var age: I, ) {
    var sex: String = "男"
    fun show() {
        println("name: $name, id: $id, age: $age,sex: $sex")
    }
}